﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentMigrator;

namespace Coevery.Database.Migrations
{
    [Migration(20121010161758)]
    public class _20121010161758_InitMetadataRelationshipTable : Migration
    {
        public override void Up()
        {
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "76ECBD66-624B-4D30-BBD5-0084FB4B99C4", Name = "FK_Contract_Department", ReferencingEntityId = "6E8642FB-FB19-44B2-99B1-36B21DCC21E2", ReferencingAttributeId = "6ED7DF48-FDD1-4125-8512-23E917961ED9", ReferencedEntityId = "BB185E89-9E91-49A6-B450-0979AB6B8C9B", ReferencedAttributeId = "E905AF9A-8B4B-49CB-A071-0FA8B628D3E0", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "57613B4E-394D-4BA9-8B32-08848FB78F86", Name = "FK_Note_User_ModifiedBy", ReferencingEntityId = "DAE981F9-AD1F-4D94-A6C2-AC131DEE5AE2", ReferencingAttributeId = "3AA7EEC8-D74C-4A68-A5B4-6111DF8FBE00", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "1E11FA0F-4F70-44E4-A749-08C544EF81A3", Name = "FK_Opportunity_TransactionCurrency", ReferencingEntityId = "80E79E18-0F0B-4D28-ABE9-92BF875BA426", ReferencingAttributeId = "D5C5D3CD-0FA9-4B02-9CE2-A40AB2CC4E7D", ReferencedEntityId = "77000EA8-3A5D-439E-A466-FF2B8D302C6C", ReferencedAttributeId = "258C2F7A-CDD2-4590-9BF3-CDDE9ABDE4A7", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "291E4A91-375A-4C46-A647-091956D37CD7", Name = "FK_Lead_Department", ReferencingEntityId = "8C06FC35-C27D-4C4D-BC96-8F1BD15A480C", ReferencingAttributeId = "54772E57-F15B-4835-B4A4-6C923E6898CB", ReferencedEntityId = "BB185E89-9E91-49A6-B450-0979AB6B8C9B", ReferencedAttributeId = "E905AF9A-8B4B-49CB-A071-0FA8B628D3E0", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "EA7691BA-2B12-4727-B108-098FC8365586", Name = "FK_RolePrivilege_Privilege", ReferencingEntityId = "96F6A424-859B-4520-AAA6-7FBE4C6A33A4", ReferencingAttributeId = "5FBB4DA2-D40B-4A2B-8943-38054C7A4F67", ReferencedEntityId = "44FA4628-A7FD-422D-A26B-D866BF5682D4", ReferencedAttributeId = "FCD29FF8-000D-4B4A-ACAD-D1BA2461E763", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "F0B83EF9-C24D-42FE-92FA-0C9845DC3C14", Name = "FK_Invoice_Account", ReferencingEntityId = "A2224E4A-DB2B-479D-9CE5-B67500201249", ReferencingAttributeId = "2D455F2C-98CE-4308-B7F7-CA00FB21C1F2", ReferencedEntityId = "F04176E7-E941-4800-A83E-463C4B8831BF", ReferencedAttributeId = "476ABADD-159D-4386-85D7-59C026B1DA74", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "F377A35A-B04B-4913-8737-0CC398971599", Name = "FK_RolePrivilege_Role", ReferencingEntityId = "96F6A424-859B-4520-AAA6-7FBE4C6A33A4", ReferencingAttributeId = "B165395E-470B-4090-92FB-5672AB316A97", ReferencedEntityId = "DF0895A9-AE60-40A5-B6FF-190C5C91D045", ReferencedAttributeId = "78D9E80F-C017-42C6-AC0E-C88E1428D8C6", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "450CFEEE-9EF4-4746-BD9B-0DD1C91B5050", Name = "FK_User_CreatedBy", ReferencingEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencingAttributeId = "C98E240F-E045-4B75-B613-E23BF497A31B", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "44E0A727-F71C-44FA-B9A7-12ABDCF95B02", Name = "FK_QuoteLineItem_Product", ReferencingEntityId = "F4987522-469B-4EED-AE0B-0C202EF89431", ReferencingAttributeId = "ECE4A30A-9BFF-46CE-8326-4194A21903DB", ReferencedEntityId = "F32DF9E2-40DC-4DCF-9B47-4D2F5E251D56", ReferencedAttributeId = "634E70B2-D574-4FC1-816B-5EB4CAE2D96E", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "482E9AB0-2605-4596-B65D-13BE9A705E3A", Name = "FK_Notification_User_ModifiedBy", ReferencingEntityId = "27628829-20C3-48A2-A488-676C0DF9FDBE", ReferencingAttributeId = "1BCE78B9-B59D-4542-BF8B-72644636DE43", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "B0586720-CF07-4FE2-B420-1E931E5DD820", Name = "FK_Project_User_ModifiedBy", ReferencingEntityId = "4131651A-C217-4D44-9EF5-A0947B5A3749", ReferencingAttributeId = "28838E11-9485-4B4D-BD41-3E1E1394639E", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "AA3C9F6B-F583-4108-856D-28D3B46C4169", Name = "User_Audit", ReferencingEntityId = "4AA7B81C-B70D-4BCB-95D6-2AB3AF0CBBB7", ReferencingAttributeId = "807DEF22-2763-4B73-BD49-4ACCA11FDBDF", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "123C299A-E897-49D9-BF31-2D9F6345FBEE", Name = "FK_Account_Contact", ReferencingEntityId = "F04176E7-E941-4800-A83E-463C4B8831BF", ReferencingAttributeId = "0B07C59D-2E83-427F-BCD5-D1AD129E664B", ReferencedEntityId = "8BDAA9A2-787D-408A-8F53-E10684634B22", ReferencedAttributeId = "9AE0E908-6D5F-4888-AE55-3BE14AD02691", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "8E2CC969-0D2B-44F9-AAA2-3663EECC2DB6", Name = "FK_ProjectVersion_User1", ReferencingEntityId = "924AAB33-6127-4AC2-A001-B46A95A4A6AB", ReferencingAttributeId = "98A74540-1378-42EB-B108-7D46B0747B2A", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "1750E92F-52B0-4617-9723-36CD6AECCCAB", Name = "FK_Contact_User", ReferencingEntityId = "8BDAA9A2-787D-408A-8F53-E10684634B22", ReferencingAttributeId = "C2CDA874-BD98-40AA-9F40-FA16CE297038", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "2C910159-6984-4C3A-B32D-3A7B7106352E", Name = "FK_InvoiceContract_Invoice", ReferencingEntityId = "715D12E8-9DDB-4D0D-9282-AE30C7C77AA7", ReferencingAttributeId = "2A092C3C-CB07-4C5A-9779-9D55B47A3DC4", ReferencedEntityId = "A2224E4A-DB2B-479D-9CE5-B67500201249", ReferencedAttributeId = "1C028F9D-B7F0-45AA-A932-A56372542FFF", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "DF6DC2C3-A5C8-4A96-BF36-40966364A4E9", Name = "FK_ProjectMember_User", ReferencingEntityId = "8CCE9A0F-856F-42D4-8023-65A2E85AE1DD", ReferencingAttributeId = "BCD248DA-3456-4ED7-ABD9-9F2FD6B89337", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "E5F2CFC4-F318-4303-A435-417F6951075F", Name = "FK_ProjectIteration_User_ModifiedBy", ReferencingEntityId = "1163B3E2-9293-4185-BAFE-53BDBB20725C", ReferencingAttributeId = "E2703A40-5C0B-4EB6-9E97-28C6CCD9CAC5", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "D252A7F9-2645-4102-9B2C-4D20EC8ECB97", Name = "FK_Note_User_CreatedBy", ReferencingEntityId = "DAE981F9-AD1F-4D94-A6C2-AC131DEE5AE2", ReferencingAttributeId = "988C4B39-FBA0-4F91-B716-2C3AB44ED1AB", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "D2569045-3274-4B4C-8720-529D3867FA65", Name = "FK_User_ParentUser", ReferencingEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencingAttributeId = "FFB78F63-96CD-4CB5-93DF-654593E65FC1", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "E86957BE-8FA3-4241-9F09-52B51C73612D", Name = "FK_InvoiceContract_Contract", ReferencingEntityId = "715D12E8-9DDB-4D0D-9282-AE30C7C77AA7", ReferencingAttributeId = "CFF8A595-9BEA-410E-9CF2-82B9073435E9", ReferencedEntityId = "6E8642FB-FB19-44B2-99B1-36B21DCC21E2", ReferencedAttributeId = "3750D2A7-CD4D-42D6-9197-7D89FB26E24D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "9A304422-A373-4709-AFCC-541C122926B7", Name = "FK_Opportunity_User", ReferencingEntityId = "80E79E18-0F0B-4D28-ABE9-92BF875BA426", ReferencingAttributeId = "25156B7E-76D7-42A9-BF56-777AB1DE0AB3", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "31883995-7ACD-443D-8A0F-54FBFEDF0563", Name = "FK_ProjectIteration_ProjectVersion", ReferencingEntityId = "1163B3E2-9293-4185-BAFE-53BDBB20725C", ReferencingAttributeId = "4D69DC49-8E99-4CCD-B2B4-E5EEB354C61F", ReferencedEntityId = "924AAB33-6127-4AC2-A001-B46A95A4A6AB", ReferencedAttributeId = "4062EA8D-AB06-4B62-9DB8-760C1BC307BC", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "779C0D8A-1396-4331-90F9-55135FED8615", Name = "FK_QuoteLineItem_Quote", ReferencingEntityId = "F4987522-469B-4EED-AE0B-0C202EF89431", ReferencingAttributeId = "5ABFA06F-6498-4C6A-A20A-B5147792B0F3", ReferencedEntityId = "FCA2446B-C739-4AAA-BF63-A23C9147FDCA", ReferencedAttributeId = "FCC649F2-8C51-40CA-B71D-6C1D4ED7ADC8", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "07310BC8-7EA4-4953-88AB-55B2640D01FE", Name = "FK_Account_User", ReferencingEntityId = "F04176E7-E941-4800-A83E-463C4B8831BF", ReferencingAttributeId = "927E170F-5F5B-4C9A-8928-B1D4A1EA79FF", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "FF451303-5EDD-40DD-A2E1-5AF4A2AC9FD1", Name = "FK_Quote_User_ModifiedBy", ReferencingEntityId = "FCA2446B-C739-4AAA-BF63-A23C9147FDCA", ReferencingAttributeId = "20244459-B917-4019-A32A-5E379B11E982", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "FAE0E53C-A09A-461F-977F-5B45BD79413E", Name = "FK_ProjectWeekReport_ProjectIteration", ReferencingEntityId = "C6084586-4A6A-4C4E-BA13-A52AFDBBB5C2", ReferencingAttributeId = "DC080CCC-00F2-483D-AFDB-10B754DD3240", ReferencedEntityId = "1163B3E2-9293-4185-BAFE-53BDBB20725C", ReferencedAttributeId = "023CF736-8394-4013-AB91-E705B8F1703D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "52FB522C-CC75-4843-B5BA-5C55A123199E", Name = "FK_User_Department", ReferencingEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencingAttributeId = "99F6D460-16A9-446A-BD1F-1446823104E8", ReferencedEntityId = "BB185E89-9E91-49A6-B450-0979AB6B8C9B", ReferencedAttributeId = "E905AF9A-8B4B-49CB-A071-0FA8B628D3E0", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "0CFAFF2B-5287-4F4C-AB1A-5C7492FE6960", Name = "FK_ProjectTask_User", ReferencingEntityId = "3B96362A-A7B1-4898-8A6A-9B400041BFA6", ReferencingAttributeId = "01D9879C-0E67-499B-856D-6698645AC997", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "7D98E9D7-5929-43A3-9E16-6070B4095AAB", Name = "FK_Quote_Opportunity", ReferencingEntityId = "FCA2446B-C739-4AAA-BF63-A23C9147FDCA", ReferencingAttributeId = "5B4B0EB0-FBE1-48F9-8125-AE0623ED4B3C", ReferencedEntityId = "80E79E18-0F0B-4D28-ABE9-92BF875BA426", ReferencedAttributeId = "E4E281D6-CB86-43B6-8B6F-0A744D904497", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "8725BC65-5E71-46DD-B61D-61FFAA17D853", Name = "FK_ProjectVersion_User", ReferencingEntityId = "924AAB33-6127-4AC2-A001-B46A95A4A6AB", ReferencingAttributeId = "F4149BA4-D1DF-44D3-988F-074452F41B1F", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "BB9D37D5-84E5-4F65-91E1-645BDD2DE085", Name = "FK_ProjectWeekReport_Project", ReferencingEntityId = "C6084586-4A6A-4C4E-BA13-A52AFDBBB5C2", ReferencingAttributeId = "79BB1550-D2FC-4DA1-B609-B7DAFF15C43B", ReferencedEntityId = "4131651A-C217-4D44-9EF5-A0947B5A3749", ReferencedAttributeId = "4539AF6D-7E3C-4004-9F1E-4079A7D04B97", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "28EB621F-461E-4FAC-A081-64D381B064F2", Name = "FK_Project_User", ReferencingEntityId = "4131651A-C217-4D44-9EF5-A0947B5A3749", ReferencingAttributeId = "BBC971B2-17AE-48A3-BB0F-515FB35B2983", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "9696211A-1C23-4438-8E48-6615102CEEFB", Name = "FK_Contract_Account", ReferencingEntityId = "6E8642FB-FB19-44B2-99B1-36B21DCC21E2", ReferencingAttributeId = "5E72EBC7-9274-47B8-AD64-A713503502EA", ReferencedEntityId = "F04176E7-E941-4800-A83E-463C4B8831BF", ReferencedAttributeId = "476ABADD-159D-4386-85D7-59C026B1DA74", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "020083DF-CA12-4473-B9B7-67B9824242EF", Name = "Project_Account", ReferencingEntityId = "4131651A-C217-4D44-9EF5-A0947B5A3749", ReferencingAttributeId = "9FF323F8-7104-4AF6-8435-AB1BED4EC234", ReferencedEntityId = "F04176E7-E941-4800-A83E-463C4B8831BF", ReferencedAttributeId = "476ABADD-159D-4386-85D7-59C026B1DA74", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "E2B18BAE-628F-4132-9D16-6D5A91231AC6", Name = "FK_ProjectTask_User_ModifiedBy", ReferencingEntityId = "3B96362A-A7B1-4898-8A6A-9B400041BFA6", ReferencingAttributeId = "2F0350FE-28B4-428C-9FF7-FBAD53361B63", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "906BCCCB-4F20-4EA8-930C-6F8D5841A23C", Name = "FK_Invoice_User", ReferencingEntityId = "A2224E4A-DB2B-479D-9CE5-B67500201249", ReferencingAttributeId = "E40FB480-B569-4355-82B0-DA81E70CEF91", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "D3E29F5C-6B15-4079-94FB-76D9135ABC69", Name = "FK_Lead_User", ReferencingEntityId = "8C06FC35-C27D-4C4D-BC96-8F1BD15A480C", ReferencingAttributeId = "FDFBA642-7E88-4895-BAA0-FF71A1E89E31", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "25FC422F-0D10-494B-A0A1-78D44AA5B3A2", Name = "FK_UserRole_User", ReferencingEntityId = "26B07909-A057-4961-B349-F0FDCE041964", ReferencingAttributeId = "F15E07A0-D6AF-40ED-B52A-A173D4BC13A6", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "C084A539-046B-4DBF-A378-82D207BEFD41", Name = "FK_ProjectWeekReport_User_CreatedBy", ReferencingEntityId = "C6084586-4A6A-4C4E-BA13-A52AFDBBB5C2", ReferencingAttributeId = "97DA1AD8-1248-429F-A5D0-141C16232045", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "4D13B625-3E41-4D65-96B0-89D90013DDCB", Name = "FK_ProjectWeekReport_User_ModifiedBy", ReferencingEntityId = "C6084586-4A6A-4C4E-BA13-A52AFDBBB5C2", ReferencingAttributeId = "DE234564-F1E4-4463-89CC-F2A9AE27E8CC", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "9445C6F1-9CEF-4C64-B0F0-8B547148E117", Name = "FK_ProjectTask_Project", ReferencingEntityId = "3B96362A-A7B1-4898-8A6A-9B400041BFA6", ReferencingAttributeId = "74B9EFA4-03A1-4618-9085-9BC728196265", ReferencedEntityId = "4131651A-C217-4D44-9EF5-A0947B5A3749", ReferencedAttributeId = "4539AF6D-7E3C-4004-9F1E-4079A7D04B97", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "1B345032-CD9C-4C4F-B241-A5341ECABC65", Name = "FK_Opportunity_User_CreatedBy", ReferencingEntityId = "80E79E18-0F0B-4D28-ABE9-92BF875BA426", ReferencingAttributeId = "88D651A7-EB18-46BA-B3CF-6A93938C50AC", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "C4BFE213-705E-41BD-B828-A55161257916", Name = "FK_TimeTracking_User", ReferencingEntityId = "4CA58595-32F5-42CA-8EA1-BEEC39E2109E", ReferencingAttributeId = "A0B28C5E-B805-44E7-A428-282908E9F2A0", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "5DB5E355-AD0A-4380-B1E7-A687004CB754", Name = "FK_Project_User_SaleServiceId", ReferencingEntityId = "4131651A-C217-4D44-9EF5-A0947B5A3749", ReferencingAttributeId = "6A1DCDE3-AADC-4C6E-9469-4E6AE78D390E", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "812EAC8A-695E-45A0-9F95-A68C30309A94", Name = "FK_Opportunity_User_ModifiedBy", ReferencingEntityId = "80E79E18-0F0B-4D28-ABE9-92BF875BA426", ReferencingAttributeId = "8910EDAF-B7D7-4A75-A744-D798A43AD92C", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "F389ED14-9125-4DC8-83D1-A8C65AE50E7F", Name = "FK_Contact_User_ModifiedBy", ReferencingEntityId = "8BDAA9A2-787D-408A-8F53-E10684634B22", ReferencingAttributeId = "29AF929D-810D-4365-8A97-424A79172688", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "DD981C80-0580-4501-9732-ABDCC3552071", Name = "FK_Quote_Account", ReferencingEntityId = "FCA2446B-C739-4AAA-BF63-A23C9147FDCA", ReferencingAttributeId = "A89B5F73-B664-417E-84F4-F9E4765A5E27", ReferencedEntityId = "F04176E7-E941-4800-A83E-463C4B8831BF", ReferencedAttributeId = "476ABADD-159D-4386-85D7-59C026B1DA74", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "358C5610-7EF3-467D-9C58-AD591A9F5532", Name = "FK_Contact_Lead", ReferencingEntityId = "8BDAA9A2-787D-408A-8F53-E10684634B22", ReferencingAttributeId = "C0CDE7D4-FC85-4AE4-8257-C8008C14CD49", ReferencedEntityId = "8C06FC35-C27D-4C4D-BC96-8F1BD15A480C", ReferencedAttributeId = "E6B2079F-FCA1-45EB-933D-C189DD5A147E", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "2498E881-8415-4006-A9F2-AED2D00EFAF1", Name = "FK_Product_User_CreatedBy", ReferencingEntityId = "F32DF9E2-40DC-4DCF-9B47-4D2F5E251D56", ReferencingAttributeId = "0B7D5B25-9CC5-43F9-B986-F36CF1540EF5", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "74F015CC-14FD-43E4-931A-B0328FCFF3A7", Name = "FK_Invoice_User_CreatedBy", ReferencingEntityId = "A2224E4A-DB2B-479D-9CE5-B67500201249", ReferencingAttributeId = "BD3AFDDC-ABBE-4FFD-BF4B-82165523B33F", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "416E5791-CEB5-429B-9074-B5DA851DCD1C", Name = "FK_Attendance_User_CreatedBy", ReferencingEntityId = "1398A24A-27F4-4733-A8E7-F8CE2BFCC320", ReferencingAttributeId = "F69C79FB-D01C-4170-9EBD-0A856AFD1118", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "C1A23E93-770F-42CA-BC4E-B6E801D0EBDA", Name = "FK_Quote_TransactionCurrency", ReferencingEntityId = "FCA2446B-C739-4AAA-BF63-A23C9147FDCA", ReferencingAttributeId = "C776CB28-8904-4FB2-A6D9-ABEB357E7FA8", ReferencedEntityId = "77000EA8-3A5D-439E-A466-FF2B8D302C6C", ReferencedAttributeId = "258C2F7A-CDD2-4590-9BF3-CDDE9ABDE4A7", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "AAC1CDA9-ADBE-49A7-BDCE-B96F7182240E", Name = "FK_ProjectTask_User_CreatedBy", ReferencingEntityId = "3B96362A-A7B1-4898-8A6A-9B400041BFA6", ReferencingAttributeId = "A3F35764-91F3-4576-A9D1-9D1E36A3414B", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "EF9C7BF3-0EAB-430F-8E8F-BC7998B99450", Name = "FK_Quote_User_CreatedBy", ReferencingEntityId = "FCA2446B-C739-4AAA-BF63-A23C9147FDCA", ReferencingAttributeId = "9606A1B1-FEC1-4978-9AB0-A10C8FC162D2", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "1680167F-ED18-4F06-8527-BEAF87B50657", Name = "FK_ProjectVersion_Project", ReferencingEntityId = "924AAB33-6127-4AC2-A001-B46A95A4A6AB", ReferencingAttributeId = "8A0A88A9-6BB1-44AC-918D-E3FFAD355FF8", ReferencedEntityId = "4131651A-C217-4D44-9EF5-A0947B5A3749", ReferencedAttributeId = "4539AF6D-7E3C-4004-9F1E-4079A7D04B97", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "E0FA29AF-8822-4FF8-9FCE-BF31781C52ED", Name = "FK_Invoice_TransactionCurrency", ReferencingEntityId = "A2224E4A-DB2B-479D-9CE5-B67500201249", ReferencingAttributeId = "EE0F9A85-0F19-4DF3-8329-C409A6EAB94D", ReferencedEntityId = "77000EA8-3A5D-439E-A466-FF2B8D302C6C", ReferencedAttributeId = "258C2F7A-CDD2-4590-9BF3-CDDE9ABDE4A7", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "B0664077-4494-4A68-A823-C111CF195A21", Name = "FK_ProjectIteration_User_CreatedBy", ReferencingEntityId = "1163B3E2-9293-4185-BAFE-53BDBB20725C", ReferencingAttributeId = "E5D6207E-F439-471F-AA78-9CB6148AC80F", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "57F6D79F-5A95-4BB6-9EBD-C122E24D58A4", Name = "FK_TaskTimeHistory_ProjectTask", ReferencingEntityId = "52A1E467-20B4-42D9-BF2F-C71EE4AF7232", ReferencingAttributeId = "36E6D9DD-35AA-46F3-9A20-813A339ED003", ReferencedEntityId = "3B96362A-A7B1-4898-8A6A-9B400041BFA6", ReferencedAttributeId = "847756A7-EB95-410F-8474-E23F19D1A418", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "11FBB6C1-8C85-42B6-A854-C24216E3B274", Name = "FK_ProjectMember_Project", ReferencingEntityId = "8CCE9A0F-856F-42D4-8023-65A2E85AE1DD", ReferencingAttributeId = "F514528F-E75E-47CC-A27C-C371A93C20C2", ReferencedEntityId = "4131651A-C217-4D44-9EF5-A0947B5A3749", ReferencedAttributeId = "4539AF6D-7E3C-4004-9F1E-4079A7D04B97", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "94C53DCE-4DBD-4F8D-872F-C44EDF5EC7E9", Name = "FK_Lead_User_CreatedBy", ReferencingEntityId = "8C06FC35-C27D-4C4D-BC96-8F1BD15A480C", ReferencingAttributeId = "F7213844-45C2-4414-87BB-1BA560AAFEE8", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "EAE4E5E3-AEBB-43E1-8735-C6BD4C025DF6", Name = "FK_Invoice_User_ModifiedBy", ReferencingEntityId = "A2224E4A-DB2B-479D-9CE5-B67500201249", ReferencingAttributeId = "C9428EA1-A9C5-4342-BCFB-30E97DEEC631", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "3044B3B8-E5BA-4E42-86A5-C96B64F8BDDC", Name = "FK_Account_Department", ReferencingEntityId = "F04176E7-E941-4800-A83E-463C4B8831BF", ReferencingAttributeId = "86BB5D21-71B9-4CBF-8277-C36AA12F418D", ReferencedEntityId = "BB185E89-9E91-49A6-B450-0979AB6B8C9B", ReferencedAttributeId = "E905AF9A-8B4B-49CB-A071-0FA8B628D3E0", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "70BAF13B-2AAE-4D8A-A713-C9B64853C717", Name = "FK_Project_Contract", ReferencingEntityId = "4131651A-C217-4D44-9EF5-A0947B5A3749", ReferencingAttributeId = "20C228E1-3BEB-4AD9-907D-4FFAFFEE573D", ReferencedEntityId = "6E8642FB-FB19-44B2-99B1-36B21DCC21E2", ReferencedAttributeId = "3750D2A7-CD4D-42D6-9197-7D89FB26E24D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "2E348AC4-E785-43A6-B6D1-CF6F02A7D935", Name = "FK_Opportunity_User_TechnicianId", ReferencingEntityId = "80E79E18-0F0B-4D28-ABE9-92BF875BA426", ReferencingAttributeId = "A86DB4AA-3CB4-47B6-B9CB-5B88BA6A11D4", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "4B103D87-2302-48B2-8FD1-CFA03DF0AA8C", Name = "FK_Account_User_ModifiedBy", ReferencingEntityId = "F04176E7-E941-4800-A83E-463C4B8831BF", ReferencingAttributeId = "208F957A-574A-4C53-B2B8-17D112A6DE12", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "6E587ECB-DBEC-4A75-8BE8-D0AB8BA29A78", Name = "FK_Contract_User", ReferencingEntityId = "6E8642FB-FB19-44B2-99B1-36B21DCC21E2", ReferencingAttributeId = "31C8E0BD-0459-4040-92AC-65AB9C23A4FC", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "C84BA306-A124-4506-A86E-D477D6297D66", Name = "FK_Opportunity_Department", ReferencingEntityId = "80E79E18-0F0B-4D28-ABE9-92BF875BA426", ReferencingAttributeId = "C6F95EE1-3AFD-4E67-B60E-E6CB543D332E", ReferencedEntityId = "BB185E89-9E91-49A6-B450-0979AB6B8C9B", ReferencedAttributeId = "E905AF9A-8B4B-49CB-A071-0FA8B628D3E0", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "60E23D13-5D5B-418D-A891-D4A16C6402F3", Name = "FK_Product_User_ModifiedBy", ReferencingEntityId = "F32DF9E2-40DC-4DCF-9B47-4D2F5E251D56", ReferencingAttributeId = "6022D53E-2184-4F20-BDCA-6A3FDC5BFED4", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "F44B3494-7FE5-4D19-878B-D567E434C001", Name = "FK_NotificationRecipient_User", ReferencingEntityId = "92BB86D2-0087-4542-AFB1-59B35506C95F", ReferencingAttributeId = "1553E3FE-67A0-4EB7-93F6-6042768B809A", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "C81E353E-0178-4EEB-9206-D8F2EA609FAF", Name = "FK_User_ModifiedBy", ReferencingEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencingAttributeId = "034B4F4D-6A69-40D9-93FD-F802B713C969", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "5626A555-A1DE-446B-BEF1-DAB6A2483C83", Name = "FK_NotificationRecipient_Notification", ReferencingEntityId = "92BB86D2-0087-4542-AFB1-59B35506C95F", ReferencingAttributeId = "12CD3593-E9C0-4EBD-A8D3-68715FD5A7C3", ReferencedEntityId = "27628829-20C3-48A2-A488-676C0DF9FDBE", ReferencedAttributeId = "D4E371A9-A9D1-4C0C-9979-53644236C112", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "DB597F8C-3CE2-4627-9E04-E11525FEC727", Name = "FK_Contract_TransactionCurrency", ReferencingEntityId = "6E8642FB-FB19-44B2-99B1-36B21DCC21E2", ReferencingAttributeId = "B3237AB2-2A02-4D87-AF77-D233F7F4B789", ReferencedEntityId = "77000EA8-3A5D-439E-A466-FF2B8D302C6C", ReferencedAttributeId = "258C2F7A-CDD2-4590-9BF3-CDDE9ABDE4A7", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "50B596D4-4894-4B51-BA5F-E2754AC388BC", Name = "FK_UserRole_Role", ReferencingEntityId = "26B07909-A057-4961-B349-F0FDCE041964", ReferencingAttributeId = "A53CA65A-75D7-42A0-8D0D-86683A1771B6", ReferencedEntityId = "DF0895A9-AE60-40A5-B6FF-190C5C91D045", ReferencedAttributeId = "78D9E80F-C017-42C6-AC0E-C88E1428D8C6", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "4066CB00-806F-431D-BA1D-E69BF293D06F", Name = "Opportunity_Account", ReferencingEntityId = "80E79E18-0F0B-4D28-ABE9-92BF875BA426", ReferencingAttributeId = "3EFB79AE-3A6E-4613-AD07-79DB2620FB11", ReferencedEntityId = "F04176E7-E941-4800-A83E-463C4B8831BF", ReferencedAttributeId = "476ABADD-159D-4386-85D7-59C026B1DA74", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "4767E2D9-6CB7-49AB-804B-E881AC01C1B3", Name = "FK_Opportunity_Lead", ReferencingEntityId = "80E79E18-0F0B-4D28-ABE9-92BF875BA426", ReferencingAttributeId = "7F2DFE63-577F-4D45-BF69-D9706F2A745F", ReferencedEntityId = "8C06FC35-C27D-4C4D-BC96-8F1BD15A480C", ReferencedAttributeId = "E6B2079F-FCA1-45EB-933D-C189DD5A147E", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "5E704EEF-0985-419C-A5EB-E94CC219770E", Name = "FK_Lead_User_ModifiedBy", ReferencingEntityId = "8C06FC35-C27D-4C4D-BC96-8F1BD15A480C", ReferencingAttributeId = "A5273743-0CF9-403E-9AE0-DFB0AB8DF11D", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "12F1EBE0-225A-44D6-B32E-E97155B8ED96", Name = "FK_Quote_CustomerAddress", ReferencingEntityId = "FCA2446B-C739-4AAA-BF63-A23C9147FDCA", ReferencingAttributeId = "8805EF2E-E893-40E5-825C-5EAEB3B86F86", ReferencedEntityId = "FF5F6CA0-6647-4589-8AE9-EC8AFB2F76F9", ReferencedAttributeId = "0BD904EB-3E6C-41AE-8502-1FD97395555A", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "9FF4705A-80B6-4E00-B6F8-ECA09CFAB71E", Name = "FK_ProjectIteration_Project", ReferencingEntityId = "1163B3E2-9293-4185-BAFE-53BDBB20725C", ReferencingAttributeId = "13B88F80-7A75-4984-91D8-09C37C6A5962", ReferencedEntityId = "4131651A-C217-4D44-9EF5-A0947B5A3749", ReferencedAttributeId = "4539AF6D-7E3C-4004-9F1E-4079A7D04B97", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "D9BBEB1E-8C7F-4947-A923-ED1B4366078E", Name = "FK_TimeTracking_Opportunity", ReferencingEntityId = "4CA58595-32F5-42CA-8EA1-BEEC39E2109E", ReferencingAttributeId = "E6E222CB-F547-47BA-B799-A3B06E7130AF", ReferencedEntityId = "80E79E18-0F0B-4D28-ABE9-92BF875BA426", ReferencedAttributeId = "E4E281D6-CB86-43B6-8B6F-0A744D904497", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "5819869D-ACD6-475D-A33A-ED8684348D27", Name = "FK_Account_User_CreatedBy", ReferencingEntityId = "F04176E7-E941-4800-A83E-463C4B8831BF", ReferencingAttributeId = "CACC1007-D26A-44DC-BCC0-A81B386B4996", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "1D1AEB94-31B8-453A-8800-EE4CDA5BBB39", Name = "FK_Notification_User_CreatedBy", ReferencingEntityId = "27628829-20C3-48A2-A488-676C0DF9FDBE", ReferencingAttributeId = "E082B63C-B1D5-4803-852B-8C76C403B340", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "919C386F-E622-4C82-B439-F0FA35BE05DA", Name = "FK_Contract_User_ModifiedBy", ReferencingEntityId = "6E8642FB-FB19-44B2-99B1-36B21DCC21E2", ReferencingAttributeId = "43A60D12-F287-4EE1-8DDC-55C22EBD43B4", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "5A332614-D43C-4939-B8CF-F2436F416224", Name = "FK_ProjectTask_ProjectIteration", ReferencingEntityId = "3B96362A-A7B1-4898-8A6A-9B400041BFA6", ReferencingAttributeId = "528AC203-9749-44E2-95B3-AA320466F13E", ReferencedEntityId = "1163B3E2-9293-4185-BAFE-53BDBB20725C", ReferencedAttributeId = "023CF736-8394-4013-AB91-E705B8F1703D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "7EBDF482-6F29-4F0B-A20F-F4BEA412C9FF", Name = "FK_PrivilegeEntity_Privilege", ReferencingEntityId = "5351FC5D-AF9A-4A4A-B900-6EC3C5B2258E", ReferencingAttributeId = "7298825B-23EA-48B8-A1A1-2DA62CF3306E", ReferencedEntityId = "44FA4628-A7FD-422D-A26B-D866BF5682D4", ReferencedAttributeId = "FCD29FF8-000D-4B4A-ACAD-D1BA2461E763", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "CBB8EFBA-5F2E-4332-9608-F5178C589E03", Name = "FK_Contract_User_CreatedBy", ReferencingEntityId = "6E8642FB-FB19-44B2-99B1-36B21DCC21E2", ReferencingAttributeId = "80B05100-A89E-4003-BB9E-4232AE263889", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "D0711B07-CCF5-43DF-A449-F53DBA9635CF", Name = "FK_Account_Lead", ReferencingEntityId = "F04176E7-E941-4800-A83E-463C4B8831BF", ReferencingAttributeId = "1C0F4A88-CDED-4811-8703-226C6303F5EC", ReferencedEntityId = "8C06FC35-C27D-4C4D-BC96-8F1BD15A480C", ReferencedAttributeId = "E6B2079F-FCA1-45EB-933D-C189DD5A147E", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "D94B7804-E199-4934-9B64-F5FBC21D7C94", Name = "FK_Quote_User", ReferencingEntityId = "FCA2446B-C739-4AAA-BF63-A23C9147FDCA", ReferencingAttributeId = "5D46B365-D605-4400-B050-EBCC386BF945", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "4E9EC53E-CACF-4BF0-9287-F64BA2C0AC79", Name = "FK_Contract_Opportunity", ReferencingEntityId = "6E8642FB-FB19-44B2-99B1-36B21DCC21E2", ReferencingAttributeId = "8146F0D3-CDC6-4560-A9A6-7E6D02D708B2", ReferencedEntityId = "80E79E18-0F0B-4D28-ABE9-92BF875BA426", ReferencedAttributeId = "E4E281D6-CB86-43B6-8B6F-0A744D904497", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "C77071C3-998C-4801-9CF1-F7BA5A3521B1", Name = "FK_Project_User_CreatedBy", ReferencingEntityId = "4131651A-C217-4D44-9EF5-A0947B5A3749", ReferencingAttributeId = "7238FFE7-B1D9-4AFC-9936-0E403ADADDC7", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "A186DF26-006F-433F-A028-FA16AB0472FA", Name = "FK_Attendance_User_ModifiedBy", ReferencingEntityId = "1398A24A-27F4-4733-A8E7-F8CE2BFCC320", ReferencingAttributeId = "B7CC1F3B-8B01-4EA7-8876-5DC19F3320A2", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "19E5EEF5-C6CF-4D89-8C8E-FC80C4DCCC5A", Name = "FK_Attendance_User_RecordPersonId", ReferencingEntityId = "1398A24A-27F4-4733-A8E7-F8CE2BFCC320", ReferencingAttributeId = "C75EE748-2B5C-4666-95F9-1A82A2356E71", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
            Insert.IntoTable("Metadata_Relationship").Row(new { RelationshipId = "A211AE74-6548-42E8-B403-FFBE89712394", Name = "FK_Contact_User_CreatedBy", ReferencingEntityId = "8BDAA9A2-787D-408A-8F53-E10684634B22", ReferencingAttributeId = "B6EFC369-16A6-483B-B2B8-31650D31FE89", ReferencedEntityId = "4124D7F6-0673-4A6C-BA52-8713254264EB", ReferencedAttributeId = "EE1E53CC-8EE8-4682-8272-8EB6075C670D", RelationshipType = 1, CascadeDelete = 1 });
        }
        public override void Down()
        {
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "76ECBD66-624B-4D30-BBD5-0084FB4B99C4" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "57613B4E-394D-4BA9-8B32-08848FB78F86" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "1E11FA0F-4F70-44E4-A749-08C544EF81A3" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "291E4A91-375A-4C46-A647-091956D37CD7" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "EA7691BA-2B12-4727-B108-098FC8365586" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "F0B83EF9-C24D-42FE-92FA-0C9845DC3C14" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "F377A35A-B04B-4913-8737-0CC398971599" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "450CFEEE-9EF4-4746-BD9B-0DD1C91B5050" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "44E0A727-F71C-44FA-B9A7-12ABDCF95B02" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "482E9AB0-2605-4596-B65D-13BE9A705E3A" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "B0586720-CF07-4FE2-B420-1E931E5DD820" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "AA3C9F6B-F583-4108-856D-28D3B46C4169" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "123C299A-E897-49D9-BF31-2D9F6345FBEE" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "8E2CC969-0D2B-44F9-AAA2-3663EECC2DB6" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "1750E92F-52B0-4617-9723-36CD6AECCCAB" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "2C910159-6984-4C3A-B32D-3A7B7106352E" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "DF6DC2C3-A5C8-4A96-BF36-40966364A4E9" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "E5F2CFC4-F318-4303-A435-417F6951075F" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "D252A7F9-2645-4102-9B2C-4D20EC8ECB97" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "D2569045-3274-4B4C-8720-529D3867FA65" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "E86957BE-8FA3-4241-9F09-52B51C73612D" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "9A304422-A373-4709-AFCC-541C122926B7" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "31883995-7ACD-443D-8A0F-54FBFEDF0563" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "779C0D8A-1396-4331-90F9-55135FED8615" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "07310BC8-7EA4-4953-88AB-55B2640D01FE" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "FF451303-5EDD-40DD-A2E1-5AF4A2AC9FD1" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "FAE0E53C-A09A-461F-977F-5B45BD79413E" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "52FB522C-CC75-4843-B5BA-5C55A123199E" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "0CFAFF2B-5287-4F4C-AB1A-5C7492FE6960" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "7D98E9D7-5929-43A3-9E16-6070B4095AAB" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "8725BC65-5E71-46DD-B61D-61FFAA17D853" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "BB9D37D5-84E5-4F65-91E1-645BDD2DE085" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "28EB621F-461E-4FAC-A081-64D381B064F2" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "9696211A-1C23-4438-8E48-6615102CEEFB" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "020083DF-CA12-4473-B9B7-67B9824242EF" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "E2B18BAE-628F-4132-9D16-6D5A91231AC6" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "906BCCCB-4F20-4EA8-930C-6F8D5841A23C" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "D3E29F5C-6B15-4079-94FB-76D9135ABC69" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "25FC422F-0D10-494B-A0A1-78D44AA5B3A2" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "C084A539-046B-4DBF-A378-82D207BEFD41" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "4D13B625-3E41-4D65-96B0-89D90013DDCB" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "9445C6F1-9CEF-4C64-B0F0-8B547148E117" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "1B345032-CD9C-4C4F-B241-A5341ECABC65" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "C4BFE213-705E-41BD-B828-A55161257916" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "5DB5E355-AD0A-4380-B1E7-A687004CB754" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "812EAC8A-695E-45A0-9F95-A68C30309A94" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "F389ED14-9125-4DC8-83D1-A8C65AE50E7F" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "DD981C80-0580-4501-9732-ABDCC3552071" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "358C5610-7EF3-467D-9C58-AD591A9F5532" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "2498E881-8415-4006-A9F2-AED2D00EFAF1" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "74F015CC-14FD-43E4-931A-B0328FCFF3A7" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "416E5791-CEB5-429B-9074-B5DA851DCD1C" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "C1A23E93-770F-42CA-BC4E-B6E801D0EBDA" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "AAC1CDA9-ADBE-49A7-BDCE-B96F7182240E" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "EF9C7BF3-0EAB-430F-8E8F-BC7998B99450" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "1680167F-ED18-4F06-8527-BEAF87B50657" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "E0FA29AF-8822-4FF8-9FCE-BF31781C52ED" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "B0664077-4494-4A68-A823-C111CF195A21" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "57F6D79F-5A95-4BB6-9EBD-C122E24D58A4" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "11FBB6C1-8C85-42B6-A854-C24216E3B274" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "94C53DCE-4DBD-4F8D-872F-C44EDF5EC7E9" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "EAE4E5E3-AEBB-43E1-8735-C6BD4C025DF6" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "3044B3B8-E5BA-4E42-86A5-C96B64F8BDDC" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "70BAF13B-2AAE-4D8A-A713-C9B64853C717" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "2E348AC4-E785-43A6-B6D1-CF6F02A7D935" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "4B103D87-2302-48B2-8FD1-CFA03DF0AA8C" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "6E587ECB-DBEC-4A75-8BE8-D0AB8BA29A78" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "C84BA306-A124-4506-A86E-D477D6297D66" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "60E23D13-5D5B-418D-A891-D4A16C6402F3" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "F44B3494-7FE5-4D19-878B-D567E434C001" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "C81E353E-0178-4EEB-9206-D8F2EA609FAF" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "5626A555-A1DE-446B-BEF1-DAB6A2483C83" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "DB597F8C-3CE2-4627-9E04-E11525FEC727" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "50B596D4-4894-4B51-BA5F-E2754AC388BC" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "4066CB00-806F-431D-BA1D-E69BF293D06F" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "4767E2D9-6CB7-49AB-804B-E881AC01C1B3" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "5E704EEF-0985-419C-A5EB-E94CC219770E" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "12F1EBE0-225A-44D6-B32E-E97155B8ED96" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "9FF4705A-80B6-4E00-B6F8-ECA09CFAB71E" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "D9BBEB1E-8C7F-4947-A923-ED1B4366078E" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "5819869D-ACD6-475D-A33A-ED8684348D27" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "1D1AEB94-31B8-453A-8800-EE4CDA5BBB39" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "919C386F-E622-4C82-B439-F0FA35BE05DA" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "5A332614-D43C-4939-B8CF-F2436F416224" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "7EBDF482-6F29-4F0B-A20F-F4BEA412C9FF" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "CBB8EFBA-5F2E-4332-9608-F5178C589E03" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "D0711B07-CCF5-43DF-A449-F53DBA9635CF" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "D94B7804-E199-4934-9B64-F5FBC21D7C94" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "4E9EC53E-CACF-4BF0-9287-F64BA2C0AC79" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "C77071C3-998C-4801-9CF1-F7BA5A3521B1" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "A186DF26-006F-433F-A028-FA16AB0472FA" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "19E5EEF5-C6CF-4D89-8C8E-FC80C4DCCC5A" });
            Delete.FromTable("Metadata_Relationship").Row(new { RelationshipId = "A211AE74-6548-42E8-B403-FFBE89712394" });
        }
    }
}
